package com.techwells.applicationMarket.dao;

import java.util.List;

import com.techwells.applicationMarket.domain.Currency;
import com.techwells.applicationMarket.util.PagingTool;

public interface CurrencyMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Currency record);

    int insertSelective(Currency record);

    Currency selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Currency record);

    int updateByPrimaryKey(Currency record);

	int countTotal(PagingTool pagingTool);

	/**
	 * 获取币种列表
	 * @param pagingTool
	 * @return
	 */
	List<Currency> selectList(PagingTool pagingTool);
	
	/**
	 * 获取不同类型的币种
	 * @param type
	 * @return
	 */
	List<Currency> selectByType(Integer type);
	
}